@karolalexander Have a look at the code for Lua ESP32 + LoRaWAN (Whitecat project). Should run on the LoPy and might be more to your liking: https://github.com/whitecatboard/Lua-RTOS-ESP32 In particular they ported the LMIC library for LoRaWAN which is older and less featured than Semtech's but simpler to understand (no HALs) so you might be able to borrow some of the code from there.